package method;

/**
 * 2024/5/5
 */
public class MethodDemo7 {
    public static void main(String[] args) {
     //目标:认识方法的重载，并掌握应用场景
        test();
        test( 10);
        int a=10;
        int b=2;
        System.out.println(a+b);
    }

    public static void test(){
        System.out.println("aa---");

    }

    public static void test(int a){
        System.out.println("aaa--"+a);
    }

    void test(double c){

    }

    void test(double c,double b){

    }

    void test(int d,double e){

    }

    int test(int a,int b){
        return a+b;

    }

}
